import http from "../../utils/http"

/**
 * 修改登录密码
 */
export function loginFn(params) {
  return http({
    url: '/api/member/modifypassword',
    data: params,
    forceLogin: true
  })
}

/**
 * 修改支付密码
 */
export function payFn(params) {
  return http({
    url: '/api/member/modifypaypassword',
    data: params,
    forceLogin: true
  })
}

/**
 * 修改手机号
 */
export function mobileFn(params) {
  return http({
    url: '/api/member/modifymobile',
    data: params,
    forceLogin: true
  })
}

/**
 * 修改电子邮箱
 */
export function emailFn(params) {
  return http({
    url: '/api/member/modifyemail',
    data: params,
    forceLogin: true
  })
}